package com.cybertron.ironhide.manage.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Adver;
import com.cybertron.ironhide.manage.persistence.AdverMapper;
import com.cybertron.ironhide.manage.service.AdverService;

@Service
public class AdverServiceImpl implements AdverService {

	@Resource
	private AdverMapper adverMapper;

	@Override
	public List<Adver> selectBySelective(Adver adver, Pager pager) {
		return adverMapper.selectBySelective(adver, pager);
	}

	@Override
	public void insertSelective(Adver record) {
		adverMapper.insertSelective(record);
	}

	@Override
	public void updateByPrimaryKeySelective(Adver record) {
		adverMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Adver selectByPrimaryKey(Long id) {
		return adverMapper.selectByPrimaryKey(id);
	}

	@Override
	public void deleteByPrimaryKey(Long id) {
		adverMapper.deleteByPrimaryKey(id);
	}

	@Override
	public List<Adver> selectByIndex() {
		return adverMapper.selectByIndex();
	}

}
